package com.cloudfun.campusshare.common.security;

import com.cloudfun.campusshare.common.constant.AuthType;
import com.cloudfun.campusshare.common.constant.RoleType;
import com.cloudfun.campusshare.common.constant.TokenType;

import java.lang.annotation.*;

/**
 * Created by superlee on 2018/1/8.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
@Documented
@Inherited
public @interface AuthRequired {
    AuthType[] auth() default AuthType.NAKE;

    TokenType type() default TokenType.NORMAL;

    RoleType[] role() default {};
}
